#include<stdio.h>

int main()
{
	int *p1,*p2,*p,a,b;
	p1 = &a;
	p2 = &b;
	scanf("%d%d",p1,p2);
	if(a<b)
	{
		p = p1;
		p1 = p2;
		p2 = p;
	}
	
	printf("%-5d,%-5d\n",*p1,*p2);
}
